「打給賀,挖西飛飛,今天你要來點 Active Directory Security 嗎?」
MISC::AddSid
可以將 SID 或 user /Group 附加到 SID-HistoryGet-ADUser -Identity <account> -Properties SidHistory | Select-Object -ExpandProperty SIDHistory
Set-ADUser -Identity <account> -Remove @{SIDHistory='S-1-5-21-...'}
netdom trust /domain: /EnableSIDHistory:no